//
//  Movie.m
//  UI-13-DouBan--
//
//  Created by lanou3g on 15/8/28.
//  Copyright (c) 2015年 自由科技. All rights reserved.
//

#import "Movie.h"
#import "ImageDownloader.h"

@implementation Movie

// LQH
- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"movieid"]) {
        
        self.movieId = value;
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}


- (void)loadImage{
    __weak typeof(self) temp = self;
    [ImageDownloader asendAsynchronousDownloader:self.pic_url andBlock:^(UIImage *image) {
        temp.myImage = image;
        temp.isLoading = NO;
    }];
    temp.isLoading = YES;
}
@end
